package com.ibeeking.found.upms.service.mapper;

import com.ibeeking.found.upms.service.common.dos.TenantUserPermissionFavorityDO;
import com.ibeeking.found.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TenantUserPermissionFavorityMapper extends BaseMapper<TenantUserPermissionFavorityDO> {

    /**
     * 通过用户id查询角色信息
     *
     * @param userId
     * @return
     */
    List<TenantUserPermissionFavorityDO> queryPermissionFavorityByUserIds(@Param("userId") Long userId);

    /**
     * 通过用户id查询角色信息
     *
     * @param userId
     * @return
     */
    Integer delUserPermissionFavority(@Param("userId") Long userId, @Param("permissionId") Long permissionId);
}
